package com.example.system.api;

import com.example.starter.util.Response;
import com.example.system.dto.UserInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 王令
 * @since 2022/8/9 20:16
 */
public interface UserApi {

    @GetMapping("/username/detail")
    Response<UserInfo> loadByUsername(@RequestParam("username") String username);

    @GetMapping("/phone/detail")
    Response<UserInfo> loadByMobilePhone(@RequestParam("phone") String phone);

}
